package com.nuc.thread.cas;

import lombok.val;

/**
 * @author 诗酒趁年华
 * @version 1.0.0
 * @Description 测试类
 * @createTime 2021年07月11日 18:11:00
 */
public class Test {
    public static void main(String[] args) {
        Account accountUnsafe = new AccountUnsafe(10000);
        Account.demo(accountUnsafe);

        Account accountCas = new AccountCas(10000);
        Account.demo(accountCas);
    }
}
